package top.kaoshanji.p1ch05d.services;

import org.springframework.context.annotation.Lazy;
import org.springframework.stereotype.Service;

/**
 * 代码清单-p1ch05d-98页c：@Lazy注解告诉Spring，当有人引用该bean时，才创建该bean
 * @author kaoshanji
 * ^_^
 * create time 2025/4/27 20:35
 */
@Service
@Lazy
public class CommentService {

    public CommentService() {
        System.out.println("CommentService的构造器被调用了...");
    }

}
